import mitt from 'mitt'

const $event = mitt()

// 发出全局通知 emitter.emit('foo', { a: 'b' })
// 接收全局通知 emitter.on('foo', e => //console.log('foo', e) )
// 接收全局通知 emitter.on('*', (type, e) => //console.log(type, e) )

export default $event;
